<tr>
    <td>
    <?php if($c->level == 2):?>    
        └---
    <?php elseif($c->level == 3):?>
        └--------
    <?php endif?>

    <?php echo $c->name?>
    </td>
    <td><?php echo $c->desc?></td>
    <td>
        <?php echo CHtml::activeHiddenField($c, 'id', array('name' => 'id[]'))?>
        <?php echo CHtml::activeTextField($c, 'index', array('style' => 'width: 50px', 'name' => 'index[]'))?>
    </td>
    <td>
        <?php echo CHtml::activeDropDownList($c, 'status', $c->statusData, array('style' => 'width: 70px', 'name' => 'status[]'))?>
    </td>
    <td><a href="<?php echo $this->createUrl('/admin/item/create')?>">Thêm sản phẩm</a></td>
    <td class="da-icon-column">
        <a href="<?php echo $this->createUrl('/admin/itemCat/update', array('id' => $c->id, 'alias' => $this->shop->alias))?>"><img src="<?php echo $this->themeUrl?>/files/theme/images/icons/color/pencil.png"></a>
        <a class="deleteRow" hreflang="chuyên mục <?php echo $c->name; ?>" href="<?php echo $this->createUrl('/admin/itemCat/delete', array('id' => $c->id, 'alias' => $this->shop->alias))?>"><img src="<?php echo $this->themeUrl?>/files/theme/images/icons/color/cross.png"></a>
    </td>
</tr>
<?php if($c->itemCats):?>
<?php foreach($c->itemCats as $cc):?>
    <?php $this->renderPartial('_row', array('c' => $cc))?>
<?php endforeach;?>
<?php endif;?>